#include<bits/stdc++.h>
using namespace std;
int T;
void init()
{
    cin>>T;

}
int main()
{

    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    init();
    for(int i = 0;i < T;i++)cout<<rand() % 30 + 1<<endl;
    return 0;
}
